﻿using Commonality.ServerEnum;
using Commonality.ServerEnum.AttributeEnum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ModelToDto.Managemen
{
    public class RoleDTO
    {

        public int RoleId { get; set; }
        /// <summary>
        /// //角色名称
        /// </summary>
        public string Text { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 角色状态 0：正常 1：禁用
        /// </summary>
        public byte Status { get; set; }
        public string? StatusRemark
        {
            get
            {
                return ReadEnumRemark.GetEnumRemark<UserStatuEnum>(Status);
            }
        }

        /// <summary>
        ///  创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public int CreateId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>

        public DateTime? LastModifyTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>

        public int? LastModifierId { get; set; }
    }
}
